from inspect import getmro
class A(object):
    def __init__(self):
        pass

class B(A):
    def __init__(self):
        pass

class C(B):
    def __init__(self):
        pass


print(isinstance(A, B))
print(isinstance(B, A))
print(isinstance(C, A))
print(isinstance(C, B))
print(isinstance(A, C))
#是否是子类目
print(issubclass(C, B))
#拿到所有的继承关系
print(getmro(C))